package com.nervenets.web.controller.user;

import com.nervenets.web.controller.TokenParams;
import com.nervenets.web.enumeration.WealthType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
public class UserWealthChangeParams extends TokenParams {
    @ApiModelProperty(value = "用户的Id", required = true)
    private long targetUserId;
    @ApiModelProperty(value = "资产类型", required = true)
    @NotNull(message = "资产类型不能为空")
    private WealthType wealthType;
    @ApiModelProperty(value = "变动值", required = true)
    private long offset;
    @ApiModelProperty(value = "变动原因", required = true)
    @NotNull(message = "资产变动原因不能为空")
    private String reason;
}
